package com.gpnu.crm.domain;

import java.beans.ConstructorProperties;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class Employee {
	private Long id;
	private String name;
	private String password;
	private String email;
	private Integer age;
	private boolean admin; 
	private Department dept;
	private List<Role> roles = new ArrayList(); 

	public Employee(Long id, String name, String password, String email, Integer age) {
		this.id = id;
		this.name = name;
		this.password = password;
		this.email = email;
		this.age = age;
	}
	
	@ConstructorProperties({"name", "password", "email", "age", "admin", "dept", "roles"})
	public Employee(String name, String password, String email, Integer age, boolean admin, Department dept,
			List<Role> roles) {
		this.name = name;
		this.password = password;
		this.email = email;
		this.age = age;
		this.admin = admin;
		this.dept = dept;
		this.roles = roles;
	}

	public Employee() {
	}

}
